package com.erp.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("sys")
public class SystemController {

    @RequestMapping("toLogin")
    public String toLogin(){
        System.out.println("denglu");
        return "system/index/login";
    }

    @RequestMapping("index")
    public String toIndex(){
        System.out.println("denglu");
        return "system/index/index";
    }

    // http://localhost:8080/sys/toDeptManager

      @RequestMapping("toDeptManager")
    public String toDeptManager(){

        return "system/dept/deptManager";
    }

    //  http://localhost:8080/sys/toDeptRight
    @RequestMapping("toDeptRight")
    public String toDeptRight(){

        return "system/dept/deptRight";
    }

    //  http://localhost:8080/sys/toDeptLeft
    @RequestMapping("toDeptLeft")
    public String toDeptLeft(){

        return "system/dept/deptLeft";
    }



}
